<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible"
        content="ie=edge">
  <title>angular表格</title>
  <style>
    table,
    th,
    td {
      border: 1px solid grey;
      border-collapse: collapse;
      padding: 5px;
    }

    table tr:nth-child(odd) {
      background-color: #f1f1f1;
    }

    table tr:nth-child(even) {
      background-color: #ffffff;
    }

  </style>
</head>

<body>
  <div ng-app="myApp"
       ng-controller="myCtrl">
  <table>
    <!-- 可以使用过滤器，排序 -->
    <tr ng-repeat="x in list | orderBy: 'Country'">
      <td>{{x.Name | lowercase}}</td>
      <td>{{x.Country | uppercase}}</td>
    </tr>
  </table>
  </div>
  <script src="../lib/angular.1.7.8.js"></script>
  <script>
    var app = angular.module('myApp', [])
    app.controller('myCtrl', function ($scope, $http) {
      $http.get('test.json').then(resp => {
        $scope.list = resp.data.records
      })
    })
  </script>
</body>

</html>
